package com.wn.ticket.mapper;

import com.wn.ticket.entity.Order;
import com.wn.ticket.entity.User;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wuqingting
 * @date 2022/8/28
 */
@Repository
public interface OrderMapper {

    void add(Order order);

    List<Order> getByCondition(Order order);

    List<Order> getByTimeNotIncludeCancel(Order order);
    List<Order> getTicketByUserId(int userId);

    void update(Order order);

    List<Order> checkOrder(String state);

    Order getOrderById(int orderId);

    List<Order> getOrdersByUserId(int userId);

    Order getByOrderId(int id);
}
